package com.market.plus.core.domain;

public enum Status {
   NEW(0), UPDATED(1), DELETED(2), BLOCKED(3);

   private int status;

   public int getStatus() {
      return status;
   }

   private Status(int status) {
      this.status = status;
   }

   public static Status getStatus(int status) {
      Status valueStaus = null;
      switch (status) {
      case 0:
         valueStaus = NEW;
         break;
      case 1:
         valueStaus = UPDATED;
         break;
      case 2:
         valueStaus = DELETED;
         break;
      case 3:
         valueStaus = BLOCKED;
         break;
      }
      return valueStaus;
   }
}
